import http from '@/libs/http'

// 查询所有banner列表
export const bannerListApi = (data) => {
	// id
	return http({
		url: `/banner/list`,
		data,
		method: "GET",
	})	
}

// 新增banner
export const addBannerApi = (data) => {
	return http({
		url: `/banner/banner`,
		data,
		method: "POST",
	})
}

// 删除banner
export const delBannerApi = (data) => {
	return http({
		url: `/banner/banner`,
		data,
		method: "DELETE",
	})
}

// 获取banner详情
export const getBannerDetailApi = (data) => {
	return http({
		url: `/banner/banner`,
		data
	})
}

